package es.juanc.clases;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;



public class ModificacionClasesApiTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		final Set<String> set = new HashSet<String>() {
			private static final long serialVersionUID = 4318732489362880401L;
			{
				this.add("xxx");
				this.add("yyy");
				this.add("zzz");
			}
		};

		System.out.println( set );

		final List<String> list = new ArrayList<String>() {
			{
				this.add("xxx");
				this.add("yyy");
				this.add("zzz");
			}
		};

		System.out.println( list );

		final Map<String, String> map = new HashMap<String, String>() {
			{
				this.put("xxx","xxx");
				this.put("yyy","yyy");
				this.put("zzz","zzz");
			}
			@Override
			public String toString() {
				return super.toString().replaceAll("\\{", "[").replaceAll("\\}", "]");
			}
		};

		System.out.println( map );
	}
}